package com.me.batm.models;

import com.badlogic.gdx.math.Vector2;

public class TimedSpeed extends TimedEntity {

	private float speedFactor;
	public TimedSpeed(int direction, float x, float y, float width, float height,
			Vector2 speed, float velocity, float time, float speedFactor) {
		super(direction, x, y, width, height, speed, velocity, time);
		this.speedFactor = speedFactor;
	}
	
	public void applyEffectOverPlayer(Player player) {
		super.applyEffectOverPlayer(player);
		player.speedFactor -= speedFactor;
		
		
	}
	
	public void removeEffectOverPlayer(Player player) {
		player.speedFactor += speedFactor;
	} 

}
